package cn.ad.exception;

public class StrategyGroupValidateException extends ValidateException{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		STRATEGYGROUP_NOTFOUND_COMPAGIN(20401,"Service.err.campaign.not.found"),
		STRATEGYGROUP_NOTFOUND_PLATFORM(20401,"Service.err.strategyGroup.platform.not.found"),
		STRATEGYGROUP_PLATFORM_LENGTH(20401,"Service.err.strategyGroup.platform.size.less"),
		STRATEGYGROUP_PLATFORM_CHANGE(20401,"Service.err.strategyGroup.platform.size.change"),
		STRATEGYGROUP_STATUS(20401,"Service.err.strategyGroup.status.not.exist"),
		STRATEGYGROUP_EXIST(20401,"Service.err.strategyGroup.name.exist");

		private int value;

		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}

	public StrategyGroupValidateException(BaseErrorCode code) {
		super(code);
	}

	public StrategyGroupValidateException() {
		super();
	}

	public StrategyGroupValidateException(String message, Throwable cause, boolean enableSuppression,
                                          boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public StrategyGroupValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public StrategyGroupValidateException(String message) {
		super(message);
	}

	public StrategyGroupValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
